<template>
  <div id="user-info">
    <div class="clear-fix">
      <div class="user-header">
        <slot name="user-icon">
          <img src="~assets/img/profile/avatar.svg" alt="" />
        </slot>
      </div>
      <div class="login-info">
        <slot name="user-nickname">
          <div>登录/注册</div>
        </slot>
        <div class="phone">
          <img src="~assets/img/profile/phone.svg" alt="" />
          <slot name="user-phone">暂无绑定手机号</slot>
        </div>
      </div>
      <div class="arrow">
        <img src="~assets/img/common/arrow-left.svg" alt="" />
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "UserInfo",
};
</script>
<style lang="scss" scoped>
#user-info {
  background-color: var(--color-tint);
  padding: 15px;
  margin-top: -5px;
}
.clear-fix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .user-header {
    width: 90px;
    img {
      width: 100%;
    }
  }
  .arrow img {
    width: 20px;
  }
  .login-info {
    color: #fff;
    .phone {
      display: flex;
      align-items: center;
      margin-top: 5px;
      img {
        width: 20px;
      }
    }
  }
}
</style>
